package com.panghl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panghl.model.entity.PayOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PayOrderMapper extends BaseMapper<PayOrder> {
    /**
     * 新增订单
     * */
    int insertPayOrder(@Param("user_id") int user_id, @Param("product_name") String product_name, @Param("count") int count);

    /**
     * 根据id 查询订单
     * */
    List<PayOrder> findOrderByIds(@Param("ids") List<Long> ids);

    /**
     * 分页
     * */
    List<PayOrder> page();

}
